//
//  CRWriteHeadView.m
//  CRChatRoom
//
//  Created by lanou3g on 15/11/23.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//

#import "CRWriteHeadView.h"
#import "CRTextView.h"


@interface CRWriteHeadView ()




@end

@implementation CRWriteHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        self.inputText = [[CRTextView alloc] init];
        self.addImageBt = [[UIButton alloc] init];
        self.photosView = [[CRPhotosView alloc] init];
        
        [self addSubview:self.inputText];
        [self addSubview:self.addImageBt];
        [self addSubview:self.photosView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    // frame
    self.inputText.frame = CGRectMake(0, 0, self.frame.size.width, 130);
    self.addImageBt.frame = CGRectMake(5, 140, 30, 30);
    self.photosView.frame = CGRectMake(5, 175, self.frame.size.width - 10, 80);
    [self.addImageBt setBackgroundImage:[UIImage imageNamed:@"iconfont-wodedingdan25"] forState:UIControlStateNormal];

}
@end

















